using System;
using System.Collections.Generic;
using System.Text;

namespace NBusiness.Utilities
{
    public static class StringUtil
    {
        public static string ToCamelCase(this string str)
        {
            string converted = str;
            if (!string.IsNullOrEmpty(converted))
            {
                char first = converted[0];
                converted = first.ToString().ToLower() + converted.Substring(1, converted.Length - 1);
            }

            return converted;
        }

        public static string Capitolize(this string str)
        {
            string converted = str;
            if (!string.IsNullOrEmpty(converted))
            {
                char first = converted[0];
                converted = first.ToString().ToUpper() + converted.Substring(1, converted.Length - 1);
            }

            return converted;
        }
    }
}
